package com.ruoyi.projectInfo.service.impl;

import com.ruoyi.projectInfo.domain.HouseProjectInfo;
import com.ruoyi.projectInfo.mapper.HouseProjectInfoMapper;
import com.ruoyi.projectInfo.service.IHouseProjectInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 维修内容Service业务层处理
 * 
 * @author tuyeqi
 * @date 2023-05-15
 */
@Service
public class HouseProjectInfoServiceImpl implements IHouseProjectInfoService 
{
    @Autowired
    private HouseProjectInfoMapper houseProjectInfoMapper;

    /**
     * 查询维修内容
     * 
     * @param infoId 维修内容主键
     * @return 维修内容
     */
    @Override
    public HouseProjectInfo selectHouseProjectInfoByInfoId(Long infoId)
    {
        return houseProjectInfoMapper.selectHouseProjectInfoByInfoId(infoId);
    }

    /**
     * 查询维修内容列表
     * 
     * @param houseProjectInfo 维修内容
     * @return 维修内容
     */
    @Override
    public List<HouseProjectInfo> selectHouseProjectInfoList(HouseProjectInfo houseProjectInfo)
    {
        return houseProjectInfoMapper.selectHouseProjectInfoList(houseProjectInfo);
    }

    @Override
    public HouseProjectInfo selectInfoName(HouseProjectInfo houseProjectInfo) {
        return houseProjectInfoMapper.selectInfoName(houseProjectInfo);
    }

    /**
     * 新增维修内容
     * 
     * @param houseProjectInfo 维修内容
     * @return 结果
     */
    @Override
    public int insertHouseProjectInfo(HouseProjectInfo houseProjectInfo)
    {
        return houseProjectInfoMapper.insertHouseProjectInfo(houseProjectInfo);
    }

    /**
     * 修改维修内容
     * 
     * @param houseProjectInfo 维修内容
     * @return 结果
     */
    @Override
    public int updateHouseProjectInfo(HouseProjectInfo houseProjectInfo)
    {
        return houseProjectInfoMapper.updateHouseProjectInfo(houseProjectInfo);
    }

    /**
     * 批量删除维修内容
     * 
     * @param infoIds 需要删除的维修内容主键
     * @return 结果
     */
    @Override
    public int deleteHouseProjectInfoByInfoIds(Long[] infoIds)
    {
        return houseProjectInfoMapper.deleteHouseProjectInfoByInfoIds(infoIds);
    }

    /**
     * 删除维修内容信息
     * 
     * @param infoId 维修内容主键
     * @return 结果
     */
    @Override
    public int deleteHouseProjectInfoByInfoId(Long infoId)
    {
        return houseProjectInfoMapper.deleteHouseProjectInfoByInfoId(infoId);
    }
}
